package com.aiju.cash.core.api;

import com.aiju.app.config.ConfigManager;
import com.zhy.http.okhttp.OkHttpUtils;
import com.zhy.http.okhttp.callback.StringCallback;

/**
 * @author: 佐为
 * @date: 2016-12-06 15:48
 * @version: V1.0
 * @Description: 费率
 */
public class RateApi {

    private String dealRate = ConfigManager.INIT_SERVER_HOST + "/dealRate/list";
    private String remark = ConfigManager.INIT_SERVER_HOST + "/dealRate/remark";

    /**
     * 商品列
     *
     * @param token       令牌
     * @param callback
     */
    public void dealRateList(String token, StringCallback callback) {
        OkHttpUtils
                .post()
                .url(dealRate)
                .addParams("token", token)
                .build()
                .execute(callback);
    }

    /**
     * 商品列
     *
     * @param token       令牌
     * @param callback
     */
    public void remark(String token, StringCallback callback) {
        OkHttpUtils
                .post()
                .url(remark)
                .addParams("token", token)
                .build()
                .execute(callback);
    }
}
